<?php
$slideData = M("blockquote")->where("title='新闻顶部图片'")->limit(5)->select();

?>
    <div class="new-ist-box">
        <!-- 当前位置 -->
        <div class="wrap">
            <div class="crumb-location">
                <a href="/home/" target="_black">首页 </a>
                <span class="link"> > </span>
                <a href="/home/" target="_black">新闻</a>
                <span class="link"> > </span>
                <span class="txt"> 企业动态</span>
            </div>
            <!-- 推荐 -->
            <div class="recommend">
                <div class="r-pic">
                    <img width='100%' height='295px' src=<?php echo $slideData[0]['thumb'];?> />
                </div>
                <div class="r-right">
                    <div class="r-rem-title">
                        <div class="t-1">
                            <a href="#" target="_blank">金芽微博</a>
                        </div>
                        <div class="t-2">
                            <a href="#" target="_blank">金芽微信</a>
                        </div>
                    </div>
                    <div class="r-rem-pic"><img src="http://placeholder.qiniudn.com/195x195" /></div>
                </div>
            </div>
            <!-- 推荐 -->
        </div>
        <!-- 当前位置 -->
        <!-- 新闻列表 -->
        <div class="new-ist wrap">
            <ul>
             <?php foreach($list as $key=>$value){?>
                <li>
                    <div class="list-pic">
                        <a href="#" target="_blank"><img width='245px'  height='180px' src=<?php echo $value['thumb'];?>></a>
                    </div>
                    <div class="list-infos">
                        <h6 class="title"><a href="/index.php/New/detail_<?php echo $value['id'];?>" ><?php echo $value['title'];?></a></h6>
                        <p class="time"><?php echo date("Y-m-d",$value['createtime']);?></p>
                        <p class="txt"><?php echo mb_substr($value['description'],0,30,'utf-8');?></p>
                    </div>
                </li>
                <?php }?>
            </ul>
        </div>
        <!-- 新闻列表 -->
        <!-- 分页 -->
        <div class="wrap page-box">
            <div class="pages">
                <ul class="pagination">
                    <!--   <li class="pagination-disabled pagination-prev"><a href="#">上一页</a></li> -->
                    <?php echo $pages; ?>
                    <div class="pagination-options">
                        <div class="pagination-options-quick-jumper">
                            <input type="text" value="1">
                            <!--<span class="pagination-options-go">跳转</span>-->
                        </div>
                    </div>
                </ul>
            </div>
        </div>
    </div>
</body>

</html>